home *** CD-ROM | disk | FTP | other *** search
- NINT(3I) Last changed: 4-13-99
-
-
- NNAAMMEE
- NNIINNTT, IIDDNNIINNTT, IIQQNNIINNTT - Converts to nearest integer
-
- SSYYNNOOPPSSIISS
- NNIINNTT (([AA==]_a [,,[KKIINNDD==]_k_i_n_d]))
- IIDDNNIINNTT (([AA==]_a))
- IIQQNNIINNTT (([AA==]_a))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, IRIX systems
-
- CF90, MIPSpro 7 Fortran 90, MIPSpro Fortran 77
-
- SSTTAANNDDAARRDDSS
- Fortran
-
- Fortran extension: IIQQNNIINNTT
-
- DDEESSCCRRIIPPTTIIOONN
- NNIINNTT is the generic function name; the others are specifics. These
- are elemental intrinsic functions. They accept the following
- arguments:
-
- _a Must be type real. See the RETURN VALUES section for
- information on input data types and return values.
-
- The data type and kind type for single-precision,
- double-precision, and quad-precision values differ depending
- on your platform. For platform-specific information, see
- the TERMINOLOGY section of the IINNTTRROO__IINNTTRRIINN(3I) man page.
-
- _k_i_n_d An integer scalar value. Must be a kind type allowed for _x.
- This argument is not accepted by the MIPSpro Fortran 77
- compiler.
-
- These functions find the nearest integer for real numbers, using these
- equations:
-
- _y = IINNTT((_x+.5)) if _x >= 0
-
- _y = IINNTT((_x-.5)) if _x < 0
-
- NNOOTTEESS
- The NNIINNTT and IIDDNNIINNTT intrinsic function names can be passed as
- arguments; the other cannot.
-
- RREETTUURRNN VVAALLUUEESS
- NNIINNTT returns the nearest integer for its real argument.
-
- IIDDNNIINNTT returns the nearest integer for its double-precision argument.
-
- IIQQNNIINNTT returns the nearest integer for its quad-precision argument.
-
- SSEEEE AALLSSOO
- _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
- man page.
-